Automated quantitative pupillometer